package tech.mhuang.interchan;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import tech.mhuang.pacebox.springboot.core.rest.MicroRestTemplate;

@RestController("/test")
@RequestMapping("/test")
public class TestController {

    @Autowired
    MicroRestTemplate restTemplate;

    @GetMapping("/demo")
    public String doOtherStuff() {
        return restTemplate.getForObject("http://micro-sso/doc.html", String.class);
    }
}
